|
|
|
| | | |
|
|
|
|
Figure 13.1
The Immediate window showing data control events. |
|
|
|
|  | As you can see, the form initializes first and then the data control is loaded and positioned at the beginning of the file. Next, it moves to the first valid record in the recordset. This is why you see two sets of WillMove and MoveComplete events. |
|
|
|
|
|
|
Modifying Data Programmatically |
|
|
|
|
|
|
|
|
Lets now add the ability to insert records into and delete records from the recordset. Lets also add the ability to cancel any changes made when editing and to cancel the insertion of a new record. Figure 13.2 is an example of what your Employee Information form might look like with the new command buttons for adding, saving, and deleting data. |
|
|
|
|
|
|
|
|
Figure 13.2
The command buttons. |
|
|
|
|
|